VT-d: correct allocation failure checks
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Oct 2008 14:19:39 +0000 (15:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 20 Oct 2008 14:19:39 +0000 (15:19 +0100)
commit9e871a9951eb3ab41422e646154f42661dbae66e
tree95fad2d5159fb5b34627bcc2d3b9d631d96aa719
parent2ceac410aa5e78db3d1ad528edac92cd8eb9076f
VT-d: correct allocation failure checks

Checking the return value of map_domain_page() (and hence
map_vtd_domain_page()) against NULL is pointless, checking the return
value of alloc_domheap_page() (and thus alloc_pgtable_maddr()) is
mandatory, however.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/qinval.c
xen/drivers/passthrough/vtd/x86/vtd.c